function printContent() {
	var xmlhttp;
	if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
		xmlhttp=new XMLHttpRequest();
	} else {// code for IE6, IE5
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	xmlhttp.onreadystatechange=function() {
		if (xmlhttp.readyState==4 && xmlhttp.status==200) {
			document.getElementById("content").innerHTML=xmlhttp.responseText;
			setNext();
			setPrev();
		}
	}
	xmlhttp.open("POST","php/ajaxdaftarkonten.php",true);
	xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
	xmlhttp.send("page="+document.getElementById('page_number').value);
}

function setPrev() {
	var xmlhttp;
	if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
		xmlhttp=new XMLHttpRequest();
	} else {// code for IE6, IE5
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	xmlhttp.onreadystatechange=function() {
		if (xmlhttp.readyState==4 && xmlhttp.status==200) {
			if (xmlhttp.responseText=="true") {
				document.getElementById("Prev").style.visibility  = "visible";
			} else {
				document.getElementById("Prev").style.visibility  = "hidden";
			}
		}
	}
	xmlhttp.open("POST","php/prev.php",true);
	xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
	xmlhttp.send("page="+document.getElementById('page_number').value);
}


function setNext() {
	var xmlhttp;
	if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
		xmlhttp=new XMLHttpRequest();
	} else {// code for IE6, IE5
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	xmlhttp.onreadystatechange=function() {
		if (xmlhttp.readyState==4 && xmlhttp.status==200) {
			if (xmlhttp.responseText=="true") {
				document.getElementById("Next").style.visibility  = "visible";
			} else {
				document.getElementById("Next").style.visibility  = "hidden";
			}
		}
	}
	xmlhttp.open("POST","php/next.php",true);
	xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
	xmlhttp.send("page="+document.getElementById('page_number').value);
}

function Prev() {
	document.getElementById('page_number').value--;
	printContent();
}

function Next() {
	document.getElementById('page_number').value++;
	printContent();
}